<div class="row">
	<div class="panel callout"><h6>Student Schedule</h6></div>
	<?php
	if(!empty($student)):
		$this->load->view('profile/_profile_links');
	endif;
	
	$this->load->view('layouts/student_profile_head');
	?>
<?php echo form_fieldset('Schedule of ' . strtoupper($student->lastname) . ', ' . ucfirst($student->firstname));?>

	<table class="data-table">
			<thead class="tabular-head">
			<tr>
				<th>Subject Code</th>
				<th>Subject Description</th>
				<th>Day</th>
				<th>Time</th>
			</tr>
			</thead>
			<tbody class="tabular">
      <? if(!empty($student_subjects)) :?>
      <? foreach($student_subjects as $row) :?>
			    <tr>
				    <td><?= $row->subj_code ;?></td>
				    <td><?= $row->subj_desc ;?></td>
				    <td><?= $row->day ;?></td>
				    <td><?= $row->time ;?></td>
			    </tr>
			<? endforeach ;?>
      <? else: ?>
			    <tr>
				    <td colspan=4 align=center>-- No Subjects --</td>
			    </tr>
      <? endif;?>
      </tbody>
  </table>
<?php echo form_fieldset_close();?>
</div>
